#!/bin/bash
shopt -s extglob
text="aaa<skipme>bbb<skipmetoo>ccc"; echo "${text//\<*([^>])\>/}"
